<script setup>
//导入自定义的路由核心js
import router from "@/router/index.js";

const toLogin = ()=>{
  //跳转到登录组件
  //编程路由
  router.push('/login')
}
</script>

<template>
    <h3>注册页面</h3>
  <button @click="toLogin">登录</button>
</template>

<style scoped>

</style>